remove

Remove an existing fragment. If it was added to a container, its view is also removed from that container.

Return

Returns the same FragmentTransaction instance.

Parameters

fragment

The fragment to be removed.